package com.demo.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.demo.bean.Dto;
import com.demo.service.RotationimgService;
import com.demo.util.DtoUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("rotation")
public class RotationimgController {

    @Reference
    private RotationimgService rotationimgService;

    @GetMapping("list")
    public Dto list() {
        return DtoUtil.returnSuccessData(
                rotationimgService
                        .queryAllByLimit(0,8)
        );
    }

}
